home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / cat3 / SetCModel.3 < prev    next >
Text File  |  1994-09-20  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. Tk_SetColorModel(3)   Tk Library Procedures
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      Tk_SetColorModel, Tk_GetColorModel - access color model  for
  12.      screen
  13.  
  14. SYNOPSIS
  15.      #include <tk.h>
  16.  
  17.      Tk_SetColorModel(_t_k_w_i_n, _m_o_d_e_l)
  18.  
  19.      Tk_ColorModel
  20.      Tk_GetColorModel(_t_k_w_i_n)
  21.  
  22. ARGUMENTS
  23.      Tk_Window       _t_k_w_i_n   (in)      Token for window.
  24.  
  25.      Tk_ColorModel   _m_o_d_e_l   (in)      New  model  to   use   for
  26.                                        _w_i_n_d_o_w's screen.
  27. _________________________________________________________________
  28.  
  29.  
  30. DESCRIPTION
  31.      These procedures allow the color model for a  screen  to  be
  32.      read and written.  See the documentation for the tk colormo-
  33.      del command for details on the color model  and  how  it  is
  34.      used.   Tk_SetColorModel sets the color model for the screen
  35.      associated with  _t_k_w_i_n  to  _m_o_d_e_l.   _M_o_d_e_l  must  be  either
  36.      TK_COLOR  or TK_MONO.  In contrast to the tk colormodel com-
  37.      mand, there are no  restrictions  on  the  value  passed  to
  38.      Tk_SetColorModel  (you can set the model to TK_COLOR even if
  39.      the  screen  only  has  one  bit  plane).   Tk_GetColorModel
  40.      returns  the  current  color model for the screen associated
  41.      with _t_k_w_i_n.
  42.  
  43.  
  44. KEYWORDS
  45.      color model, screen
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Tk                                                              1
  64.  
  65.  
  66.  
  67.